package designpatterns.adapter.adaobject.code;

/**
 * 对象适配器：
 *  目的：优化类适配器继承的缺点
 */
public class Client {
    public static void main(String[] args) {
        Phone phone = new Phone();
        VoltageAdapter adapter = new VoltageAdapter(new Voltage220V());
        phone.charge(adapter);
    }
}
